<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name="edit"/><s:text name="%{type}"/></title>
<link href="<s:url value="/css/style.css"/>" rel="stylesheet" type="text/css" />
<link href="<s:url value="/css/admin.css"/>" rel="stylesheet" type="text/css" />
<script src="<s:url value="/js/jquery.js"/>" type="text/javascript"></script>
<s:include value="../common/showEditor.jsp"></s:include>
</head>
<body>
<div class="container">
	<div class="title"><s:text name="edit"/><s:text name="%{currentContent.type}"/></div>
	<div class="content">
		<form action="<s:url value='/admin/cms/%{currentContent.id}'/>" method="post">
			<input type="hidden" name="_method" value="put">
			<input type="hidden" name="type" value="${currentContent.type}">
			<input type="hidden" name="redirectUrl" value="${previousUrl}">
			<table class="tab1">
				<tbody>
					<tr>
						<td width="80"><s:text name="cmsTitle"/></td>
						<td>
							<input type="text" name="title" value="${currentContent.title}" size="50">
						</td>
					</tr>
					<tr>
						<td><s:text name="cmsNick"/></td>
						<td>
							<input type="text" name="nick" value="${currentContent.nick}" size="50">
						</td>
					</tr>
					<tr>
						<td><s:text name="cmsLink"/></td>
						<td>
							<s:if test="currentContent.link">
								<input type="checkbox" checked="checked" name="link" value="true">
							</s:if>
							<s:else>
								<input type="checkbox" name="link" value="true">
							</s:else>
						</td>
					</tr>
					<tr>
						<td><s:text name="cmsWebsite"/></td>
						<td>
							<input type="text" name="website" value="${currentContent.website}" size="50"/>
						</td>
					</tr>
				</tbody>
			</table>
			<div class="btns">
				<textarea id="content1" style="width:100%;height:300px;" name="content">${currentContent.content}</textarea>
				<input type="submit" value="提交" class="btn" />
				<input type="reset" value="重置" class="btn" />
			</div>
		</form>
	</div>
</div>
</body>
</html>